using UnityEngine;

namespace CinemaDirector
{
	[CutsceneItem("Physics", "Set Mass")]
	public class SetMassEvent : CinemaActorEvent
	{
		public float Mass = 1f;

		public override void Trigger(GameObject actor)
		{
			Rigidbody component = actor.GetComponent<Rigidbody>();
			if (component != null)
			{
				component.mass = Mass;
			}
		}
	}
}
